package com.lh.music.activity;

import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
import android.view.View;

import com.lh.music.R;
import com.lh.music.fragment.LocalSongFragment;

public class LocalSongActivity extends BaseActivity {
    private LocalSongFragment localSongFragment;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setContentView(R.layout.activity_local_song);
        initFragment();
    }

    private void initFragment() {
        localSongFragment=new LocalSongFragment();
        FragmentTransaction ft=getSupportFragmentManager().beginTransaction();
        ft.add(R.id.container,localSongFragment)
                .commit();
    }

    @Override
    public View getChildContentView() {
        return getLayoutInflater().inflate(R.layout.activity_local_song,null);
    }

   /* @Override
    protected void onNewIntent(Intent intent) {
        app.currentSong= (Song) intent.getSerializableExtra("song");
        app.songState=intent.getIntExtra("state",Constants.PAUSED);
        app.currentPosition=intent.getIntExtra("position",0);
        updateMusicView();
    }*/


}
